package Smallprogram.serlet;

import Smallprogram.entiy.Users;
import Smallprogram.servict.impl.UsersServletImpl;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

@WebServlet(name = "UpdateUsersServlet", value = "/UpdateUsersServlet")
public class UpdateUsersServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.setCharacterEncoding("UTF-8");
        response.setContentType("text/html;charset=UTF-8");
        String imen=request.getParameter("imen");
        int imenid=imen!=null?Integer.parseInt(imen):0;
        UsersServletImpl ime=new UsersServletImpl();
        List<Users> list=ime.selectusers();
        int mane=0;
        for (Users lien:list){

        }
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
